<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id = "app">{{msg}}

        <login></login>

        <login></login>

        <login></login>


    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>

    <template id="login">
        <div>
            <input type="text" name="usesrname" placeholder="请输入用户名"><br>
            <input type="password" name="password" placeholder="请输入密码">

        </div>
    </template>


    <script>
        const login = {
            template:"#login",
            data() {
                return {
                    shuai: 'christopher'
                };
            },
        }
        const vm  = new Vue({
            el:"#app",
            data:{
                msg:"hello"
            },
            components: {
                login
            }
        })



    </script>
</body>
</html>